package cn.dada.dadarecipes.community.thumbsup.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class ThumbsUpSaveParam {
    @ApiModelProperty(value = "点赞表id")
    Long id;
    @ApiModelProperty(value = "文章id")
    @NotNull(message = "文章id不能为空")
    Long articleId;
    @ApiModelProperty(value = "用户id")
    @NotNull(message = "用户id不能为空")
    Long userId;
    @ApiModelProperty(value = "点赞状态")
    @NotBlank(message = "点赞状态不能为空")
    String status;
}
